interface User{
  name:string
  age:number
  gender:'男'|'女'
}

type IUser=keyof User;

const user={
  name:'jack',
  age:11,
  gender:'男'
}

type Person=typeof user;

type User1={
  [k in IUser]:string|number
}

const user1:User1={
  name:'jack',
  age:11,
  gender:'男'
}
